import request from '@/utils/request'

// 获取节假日列表
export function getHolidayPlanList(query) {
  return request({
    url: '/system/holidayPlan/list',
    method: 'get',
    params: query
  })
}
// 获取节假日列表详情
export function getHolidayPlanDetial(id) {
  return request({
    url: `/system/holidayPlan/${id}`,
    method: 'get'
  })
}
// 新增节假日
export function addHolidayPlan(data) {
  return request({
    url: `/system/holidayPlan/save`,
    method: 'post',
    data
  })
}
// 更新节假日管理
export function updateHolidayPlan(data) {
  return request({
    url: `/system/holidayPlan/update`,
    method: 'put',
    data
  })
}
// 删除
export function removeHolidayPlan(id) {
  return request({
    url: `/system/holidayPlan/remove/${id}`,
    method: 'delete'
  })
}
// 新增节日
export function addHoliday(data) {
  return request({
    url: `/system/holiday/save`,
    method: 'post',
    data
  })
}
// 删除节日
export function removeHoliday(id) {
  return request({
    url: `/system/holiday/remove${id}`,
    method: 'delete'
  })
}
